package cn.yangliu.service;

import cn.yangliu.entity.Cache;
import cn.yangliu.jpa.base.service.JpaService;

/**
 * @author 问道于盲
 * @date 2021-10-03
 */
public interface CacheService extends JpaService<Cache, Long> {

    /**
     * 根据key查询缓存
     *
     * @param key key
     * @return 缓存
     */
    Cache findByKey(String key);

}
